package com.example.team.service.Imp;

import com.example.team.dao.IBusinesstripDao;
import com.example.team.entity.Businesstrip;
import com.example.team.service.IBusinesstripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/***
 * 编写者：王轩
 * 时间：2023/10/30
 * 出差管理实现
 */
@Service
public class IBusinesstripServiceImpl implements IBusinesstripService {
    @Autowired
    private IBusinesstripDao businesstripDao;
    @Override
    public int insertBusinesstrip(Businesstrip businesstrip) {
        return businesstripDao.insertBusinesstrip(businesstrip);
    }

    @Override
    public int deleteBusinesstrip(Businesstrip businesstrip) {
        return businesstripDao.deleteBusinesstrip(businesstrip);
    }

    @Override
    public int updateBusinesstrip(Businesstrip businesstrip) {
        return businesstripDao.updateBusinesstrip(businesstrip);
    }

    @Override
    public List<Businesstrip> getAllBusinesstrip(Businesstrip businesstrip) {
        return  businesstripDao.getAllBusinesstrip(businesstrip);
    }

    @Override
    public Businesstrip getBusinesstrip(Businesstrip businesstrip) {
        return businesstripDao.getBusinesstrip(businesstrip);
    }

    @Override
    public int signBusinesstrip(Businesstrip businesstrip) {
        return businesstripDao.signBusinesstrip(businesstrip);
    }
}
